<layout name="Layout/layout" />

<div style="margin-bottom: 10px;">
    <a href="{:U('Admin/Server/add',array())}"><button class="btn btn-primary">添加产品</button></a>
</div>
<table id="simple-table" class="table table-striped table-bordered table-hover">
    <thead>
    <tr>
        <th class="center">项目ID</th>
        <th class="center">项目名称</th>
        <th class="center">类别</th>
        <th class="center">创建人</th>


        <th class="center">操作</th>
    </tr>
    </thead>

    <tbody>
    <volist name="server" id="m">
        <tr>
            <td class="center">{$m.id}</td>
            <td class="center">{$m.title}</td>
            <td class="center">{$m.name}</td>
            <td class="center">{$m.nickname}</td>

            <td class="center">
                <div class=" btn-group">
                    <a href="{:U('Admin/Server/edit',array('id'=>$m['id']))}">
                        <button class="btn btn-xs btn-info">
                            <i class="ace-icon fa fa-pencil bigger-120"></i>
                        </button>
                    </a>
                    <a href="{:U('Admin/Server/delete',array('id'=>$m['id']))}" onclick="return confirm('确定要删除吗？');">
                        <button class="btn btn-xs btn-danger">
                            <i class="ace-icon fa fa-trash-o bigger-120"></i>
                        </button>
                    </a>
                </div>

            </td>
        </tr>
    </volist>
    </tbody>
</table>